<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>管理员主页</title>
    <base href="${pageContext.request.contextPath}/">
    <link rel="stylesheet" href="layui/css/layui.css">
    <link rel="stylesheet" href="css/common.css">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <div class="layui-header layui-bg-cyan">
        <div class="layui-logo">考勤管理系统</div>
        <!-- 头部区域（可配合layui已有的水平导航） -->
        <ul class="layui-nav layui-layout-left">
            <li class="layui-nav-item"><a href="admin/index">首页</a></li>
        </ul>
        <ul class="layui-nav layui-layout-right">
            <li class="layui-nav-item">
                <a href="javascript:;">
                    admin
                </a>
                <dl class="layui-nav-child">
                    <dd><a href="user/info">基本资料</a></dd>
                    <dd><a href="user/pwd">密码修改</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="">退了</a></li>
        </ul>
    </div>

    <div class="layui-side layui-bg-cyan">
        <div class="layui-side-scroll">
            <!-- 左侧导航区域（可配合layui已有的垂直导航） -->
            <ul class="layui-nav layui-nav-tree layui-bg-cyan" lay-filter="test" lay-shrink="all">
                <li class="layui-nav-item">
                    <a class="" href="javascript:;">员工管理</a>
                    <dl class="layui-nav-child">
                        <dd><a href="admin/dept/list" target="adminBody">部门管理</a></dd>
                        <dd><a href="admin/user/list" target="adminBody">员工管理</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item">
                    <a href="javascript:;">考勤配置</a>
                    <dl class="layui-nav-child">
                        <dd><a href="javascript:;">班次配置</a></dd>
                        <dd><a href="javascript:;">考勤组配置</a></dd>
                        <dd><a href="">超链接</a></dd>
                    </dl>
                </li>
                <li class="layui-nav-item"><a href="">汇总统计</a></li>
            </ul>
        </div>
    </div>

    <div class="layui-body">
        <iframe src="admin/dept/list" frameborder="0" name="adminBody" id="adminBody" style="width: 100%;"></iframe>
    </div>

    <div class="layui-footer text-center">
        <!-- 底部固定区域 -->
        © attend.habdqn.com - 瀚唐考勤管理系统
    </div>
</div>

<script src="layui/layui.js"></script>
<script>
    /* iframe 高度自适应 */
    function setIframeHeight(iframe) {
        if (iframe) {
            iframe.height = iframe.parentNode.offsetHeight;
        }
    }

    window.onload = function () {
        setIframeHeight(document.getElementById('adminBody'));
    };
</script>
<script>
    layui.use(['element'], function () {
        var element = layui.element;
    });
</script>
</body>
</html>
